#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

void Test1()
{
	Hp hp;
	HpInit(&hp);
	int a[] = { 11,22,3,18,19,33,99 };
	int len = sizeof(a) / sizeof(int);
	int i = 0;
	for (i = 0; i < len; i++)
	{
		HpPush(&hp, a[i]);
	}
	HpPrint(&hp, len);
	while (!HpEmpty(&hp))
	{
		int top = HpTop(&hp);
		printf("%d ", top);
		HpPop(&hp);
	}
	HpDestroy(&hp);
}

void Test2()
{
	Hp hp;
	HpInit(&hp);
	int a[] = { 11,22,3,18,19,33,99 };
	int len = sizeof(a) / sizeof(int);
	int i = 0;
	for (i = 0; i < len; i++)
	{
		HpPush(&hp, a[i]);
	}
	HpPrint(&hp, len);
	printf("%d ", HpSize(&hp));
}

int main()
{
	//Test1();
	Test2();
	return 0;
}